#priority 1

###################
#  Latex MathJax  #
###################
# begin 块
snippet bg "begin end"
\\begin{${1:align}}
${0}
\\end{$1}
endsnippet

# 对齐行
snippet al "align line"
& $0 \\\\
endsnippet

snippet l "|"
|${0}
endsnippet

snippet	dl "$ ... $"
$$ ${0} $$
endsnippet

snippet	dll "$$ ... $$"
$$
$1
$$ $0
endsnippet

########## 等号 #############
snippet le "<="
\\le ${0}
endsnippet

snippet ge "<="
\\ge ${0}
endsnippet

snippet ne "!="
\\ne ${0}
endsnippet

# 4格空格
snippet quad "    "
\\quad ${0}
endsnippet

########### 属于 ##############
snippet in "\in"
\\in ${0}
endsnippet

snippet nin "\notin"
\\notin ${0}
endsnippet

snippet	cc "\left(...\right) $"
\\left(${1}\\right)${0}
endsnippet

# 花括号
snippet	set "\{...\} $"
\\{${1}\\}${0}
endsnippet

# 绝对值
snippet	vert "\lvert...\rvert} $"
\\lvert${1}\rvert${0}
endsnippet

######### 箭头 #########
snippet	ra "right arrow"
\\rightarrow ${0}
endsnippet
snippet	Ra "Right arrow"
\\Rightarrow ${0}
endsnippet
snippet	la "left arrow"
\\Leftarrow ${0}
endsnippet
snippet	La "Left arrow"
\\Leftarrow ${0}
endsnippet
snippet	lra "left right arrow"
\\leftrightarrow ${0}
endsnippet
snippet	Lra "left right arrow"
\\Leftrightarrow ${0}
endsnippet

# 求和
snippet	sum "$ \sum ... $"
$ \\sum_{${1:i=${2:1}}}${3:^n}\{${4}\} $ ${0}
endsnippet

# 极限
snippet	lim "\lim ... "
\\lim_{${1:x}\\to ${2:0}} ${0}
endsnippet

# 积分
snippet	int "\int ..."
\\int_${1:0}^${2:\\infty}{${3:f(x)dx}} ${0}
endsnippet

# 分式
snippet	frac "\frac{exp1}{exp2}"
\\frac{${1:exp1}}{${2:exp2}} ${0}
endsnippet

# 根式
snippet	sqrt "\sqrt[n]{exp}"
\\sqrt[${1:n}]{${2:exp}} ${0}
endsnippet
########## Funtion ###############
snippet	sin "\sin"
\\sin{${1:x}} ${0}
endsnippet

snippet	cos "\cos"
\\cos{${1:x}} ${0}
endsnippet

snippet	tan "\tan"
\\tan{${1:x}} ${0}
endsnippet

snippet	cot "\cot"
\\cot{${1:x}} ${0}
endsnippet
########## 方程组 ################
snippet cs "Cases"
\begin{cases}
$1 \\\\
\end{cases} $0
endsnippet

snippet scs "Cases"
\begin{cases} $1 \\\\ $2 \end{cases} $0
endsnippet
########## 矩阵部分 ##############
snippet mat "Matrix"
\begin{${1:p/b/v/V/B/small}matrix}
	$0
\end{$1matrix}
endsnippet

snippet smat "Small Matrix ()"
(\begin{smallmatrix} $2 \end{smallmatrix}) $0
endsnippet

snippet mmat "Small Matrix []"
[\begin{smallmatrix} $2 \end{smallmatrix}] $0
endsnippet

snippet e "Matrix Element"
${1:e}${2:&} ${0}
endsnippet

snippet ll "\\"
\\\\${0}
endsnippet
###########################
# Sections and Paragraphs #
###########################
snippet s "Section" b
# ${1:Section Name}
$0
endsnippet

snippet ss "Sub Section" b
## ${1:Section Name}
$0
endsnippet

snippet sss "SubSub Section" b
### ${1:Section Name}
$0
endsnippet

snippet par "Paragraph" b
#### ${1:Paragraph Name}
$0
endsnippet

snippet spar "Paragraph" b
##### ${1:Paragraph Name}
$0
endsnippet

###################
# Text formatting #
###################

snippet * "italics"
*${1:${VISUAL}}*$0
endsnippet

snippet ** "bold"
**${1:${VISUAL}}**$0
endsnippet

snippet *** "bold italics"
***${1:${VISUAL}}***$0
endsnippet
############
#  其他    #
############

snippet tl "todo list"
- [ ] $0
endsnippet

snippet img "Image"
![image](images/${1:path})
endsnippet

snippet imgh "Image in html"
<img src="${1:path}" width="${2}" height="${3}">
endsnippet

snippet ==
==${1:light}==
endsnippet

snippet *=
**==${1:BoldLight}==**
endsnippet

snippet mk
**==TODO==**$0
endsnippet

snippet il
\`${1}\`
endsnippet

snippet ill
\`\`\`${1:language}
${2}
\`\`\`
endsnippet

snippet ilr
\`\`\`rust
${0}
\`\`\`
endsnippet

snippet ilk
\`\`\`kotlin
${0}
\`\`\`
endsnippet

snippet ilp
\`\`\`python
${0}
\`\`\`
endsnippet

snippet ilj
\`\`\`java
${0}
\`\`\`
endsnippet

snippet ilb
\`\`\`bash
${0}
\`\`\`
endsnippet

snippet illj
\`\`\`javascript
${0}
\`\`\`
endsnippet
################################################################################
#                                   Git Book                                   #
################################################################################
snippet ml "gitbook summary 目录"
* [${1:Chapt }](${2:File Path})$0
endsnippet
